package operacoes2;

// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.44140D6C-51C1-861F-E241-545A5D34F204]
// </editor-fold> 
public class Levantamento extends Operacao {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.139D3921-AEAE-F4F8-FC83-560F54858189]
    // </editor-fold>
    private double quantia;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.33CD58D7-50E5-3476-80F4-A6908B96D7DE]
    // </editor-fold> 
    public Levantamento(String numConta, double quantia) {
        super(numConta);
        this.quantia = quantia;
        super.setDescricao("Levantamento de " + this.getQuantia() + " € da conta: " + super.getNumConta());
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.2D121D4A-19EC-272C-E3E4-A20FA5DC73B3]
    // </editor-fold> 
    public double getQuantia() {
        return quantia;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.3ACD622D-114B-5ACD-D9A3-C6F980AFEE8E]
    // </editor-fold> 
    public void setQuantia(double val) {
        this.quantia = val;
    }

    @Override
    public String toString(){
        return "Levantamento de " + this.getQuantia() + " € da conta: " + super.getNumConta();
    }
}

